package main

import (
	"gitee.com/krio/grpc-go-server/cmd/wire"
	"gitee.com/krio/helper/logger"
)

func main() {
	a, cleanup, err := wire.InitApp()
	if err != nil {
		logger.Fatal(err)
	}
	defer cleanup() // 延迟调用cleanup关闭资源
	if err := a.Run(); err != nil {
		logger.Fatal(err)
	}
}
